﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006F7 RID: 1783
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFriendListInfoScRsp : IMessage<GetFriendListInfoScRsp>, IMessage, IEquatable<GetFriendListInfoScRsp>, IDeepCloneable<GetFriendListInfoScRsp>, IBufferMessage
	{
		// Token: 0x170016E3 RID: 5859
		// (get) Token: 0x06005049 RID: 20553 RVA: 0x000DA883 File Offset: 0x000D8A83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFriendListInfoScRsp> Parser
		{
			get
			{
				return GetFriendListInfoScRsp._parser;
			}
		}

		// Token: 0x170016E4 RID: 5860
		// (get) Token: 0x0600504A RID: 20554 RVA: 0x000DA88A File Offset: 0x000D8A8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFriendListInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170016E5 RID: 5861
		// (get) Token: 0x0600504B RID: 20555 RVA: 0x000DA89C File Offset: 0x000D8A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFriendListInfoScRsp.Descriptor;
			}
		}

		// Token: 0x0600504C RID: 20556 RVA: 0x000DA8A3 File Offset: 0x000D8AA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendListInfoScRsp()
		{
		}

		// Token: 0x0600504D RID: 20557 RVA: 0x000DA8C4 File Offset: 0x000D8AC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendListInfoScRsp(GetFriendListInfoScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.friendList_ = other.friendList_.Clone();
			this.blackList_ = other.blackList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600504E RID: 20558 RVA: 0x000DA916 File Offset: 0x000D8B16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFriendListInfoScRsp Clone()
		{
			return new GetFriendListInfoScRsp(this);
		}

		// Token: 0x170016E6 RID: 5862
		// (get) Token: 0x0600504F RID: 20559 RVA: 0x000DA91E File Offset: 0x000D8B1E
		// (set) Token: 0x06005050 RID: 20560 RVA: 0x000DA926 File Offset: 0x000D8B26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170016E7 RID: 5863
		// (get) Token: 0x06005051 RID: 20561 RVA: 0x000DA92F File Offset: 0x000D8B2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FriendSimpleInfo> FriendList
		{
			get
			{
				return this.friendList_;
			}
		}

		// Token: 0x170016E8 RID: 5864
		// (get) Token: 0x06005052 RID: 20562 RVA: 0x000DA937 File Offset: 0x000D8B37
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PlayerSimpleInfo> BlackList
		{
			get
			{
				return this.blackList_;
			}
		}

		// Token: 0x06005053 RID: 20563 RVA: 0x000DA93F File Offset: 0x000D8B3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFriendListInfoScRsp);
		}

		// Token: 0x06005054 RID: 20564 RVA: 0x000DA950 File Offset: 0x000D8B50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFriendListInfoScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.friendList_.Equals(other.friendList_) && this.blackList_.Equals(other.blackList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005055 RID: 20565 RVA: 0x000DA9B4 File Offset: 0x000D8BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.friendList_.GetHashCode();
			num ^= this.blackList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005056 RID: 20566 RVA: 0x000DAA0F File Offset: 0x000D8C0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005057 RID: 20567 RVA: 0x000DAA17 File Offset: 0x000D8C17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005058 RID: 20568 RVA: 0x000DAA20 File Offset: 0x000D8C20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.friendList_.WriteTo(ref output, GetFriendListInfoScRsp._repeated_friendList_codec);
			this.blackList_.WriteTo(ref output, GetFriendListInfoScRsp._repeated_blackList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005059 RID: 20569 RVA: 0x000DAA80 File Offset: 0x000D8C80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.friendList_.CalculateSize(GetFriendListInfoScRsp._repeated_friendList_codec);
			num += this.blackList_.CalculateSize(GetFriendListInfoScRsp._repeated_blackList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600505A RID: 20570 RVA: 0x000DAAE4 File Offset: 0x000D8CE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFriendListInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.friendList_.Add(other.friendList_);
			this.blackList_.Add(other.blackList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600505B RID: 20571 RVA: 0x000DAB42 File Offset: 0x000D8D42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600505C RID: 20572 RVA: 0x000DAB4C File Offset: 0x000D8D4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 18U)
					{
						if (num != 24U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.blackList_.AddEntriesFrom(ref input, GetFriendListInfoScRsp._repeated_blackList_codec);
					}
				}
				else
				{
					this.friendList_.AddEntriesFrom(ref input, GetFriendListInfoScRsp._repeated_friendList_codec);
				}
			}
		}

		// Token: 0x04001F8D RID: 8077
		private static readonly MessageParser<GetFriendListInfoScRsp> _parser = new MessageParser<GetFriendListInfoScRsp>(() => new GetFriendListInfoScRsp());

		// Token: 0x04001F8E RID: 8078
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001F8F RID: 8079
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04001F90 RID: 8080
		private uint retcode_;

		// Token: 0x04001F91 RID: 8081
		public const int FriendListFieldNumber = 1;

		// Token: 0x04001F92 RID: 8082
		private static readonly FieldCodec<FriendSimpleInfo> _repeated_friendList_codec = FieldCodec.ForMessage<FriendSimpleInfo>(10U, FriendSimpleInfo.Parser);

		// Token: 0x04001F93 RID: 8083
		private readonly RepeatedField<FriendSimpleInfo> friendList_ = new RepeatedField<FriendSimpleInfo>();

		// Token: 0x04001F94 RID: 8084
		public const int BlackListFieldNumber = 2;

		// Token: 0x04001F95 RID: 8085
		private static readonly FieldCodec<PlayerSimpleInfo> _repeated_blackList_codec = FieldCodec.ForMessage<PlayerSimpleInfo>(18U, PlayerSimpleInfo.Parser);

		// Token: 0x04001F96 RID: 8086
		private readonly RepeatedField<PlayerSimpleInfo> blackList_ = new RepeatedField<PlayerSimpleInfo>();
	}
}
